/*
 * @LastEditors: yuSeen
 * @LastEditTime: 2022-01-07 17:45:28
 */

import { DisplayModeEnmu, ISettingStore } from "@/types/store/settingStore";

// 是否处于暗色模式
export const isDark = ({displayMode}: ISettingStore) => {
  return displayMode === DisplayModeEnmu.DARK;
};

// 当前显示模式名称
export const displayModeName = ({displayMode}: ISettingStore) => {
  return displayMode === DisplayModeEnmu.DARK ? '暗色模式' : '亮色模式';
};
